<template>
  <div class="rateQuery">
    <div style="margin-left:5vw" v-if="feeTypeName">
      <h3 style="font-weight: bold;font-size: 18px;">
        {{ feeTypeName }}
      </h3>
    </div>
    <div style="width: 100%;">
        <agent-rate-view :MerRateList="MerRateList" ref="getMerRateData"></agent-rate-view>
        <AddedFunctionLists :memberNo="memberNo" v-if="memberNo" />
    </div>
    <div style="margin-left:5vw">
      <span>分润比例：{{ profitPercent }}%</span>
      <br />
      <span>
        分润结算方式：
        <span>{{ profitSettleType }}</span>
      </span>
    </div>
  
  </div>
</template>
<script>
import AgentRateView from "../../common/AgentRateView";
import AddedFunctionLists from "@/components/AddedFunction/AddedFunctionLists";
export default {
  components: {
    AgentRateView ,
    AddedFunctionLists
  },
  data() {
    return {
      MerRateList:null,
      query: {},
      queryid: "",
      profitPercent: "",
      profitSettleType: "",
      feeTypeName: "",
      feename: "",
      memberNo: sessionStorage.getItem("memberNo")
      

    };
  },
  mounted() {
    this.feeTypeName = "合作机构费率表";

    this.getratelist();
  },
  activated() {},

  methods: {

    getratelist() {
      this.$axios.get("/agent/fee/group/getAgentFee").then(res => {

        if (res.data.code == "OK") {
          // this.isChange = res.data.data.isChange
          this.MerRateList = res.data.data.protocolDTOList;
          this.profitPercent = res.data.data.profitPercent;
          this.profitSettleType = res.data.data.profitSettleType;

        } else {
        }
      });
    },


  }
};
</script>
<style lang="less" scoped>
/deep/.noExpand {
  .ant-table-row-expand-icon {
    display: none;
  }
}
.rateQuery {
  overflow: scroll;
  height: 100%;
  padding: 70px;
  overflow-x: hidden;
  overflow-y: auto;
}
/*滚动条样式*/
.rateQuery::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 4px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}

.rateQuery::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.rateQuery::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.1);
}
</style>
